package nodes

import (
	"gitee.com/zfd81/dbrs/sql"
	"vitess.io/vitess/go/sqltypes"
)

type ShowVariables struct {
}

// NewShowVariables creates a new show variables node.
func NewShowVariables() *ShowVariables {
	return new(ShowVariables)
}

// Resolved implements the Resolvable interface.
func (p *ShowVariables) Resolved() bool {
	return true
}

// Schema implements the Node interface.
func (*ShowVariables) Schema() sql.Schema {
	return sql.Schema{
		{Name: "Variable_name", Type: sqltypes.Text, Nullable: false},
		{Name: "Value", Type: sqltypes.Text},
	}
}

func (p ShowVariables) String() string {
	return "ShowVariables"
}
